INSERT INTO Setting(Name, Value, DefaultValue) VALUES('FilePruner.RetentionPeriod', '0', '0')
INSERT INTO Setting(Name, Value, DefaultValue) VALUES('FilePruner.Schedule', '* 0 * * *', '* 0 * * *')
INSERT INTO Setting(Name, Value, DefaultValue) VALUES('TaskProcessor.MeterFilterQuery', 'SELECT * FROM Meter', 'SELECT * FROM Meter')

UPDATE Setting SET Name = 'DataAnalysis.InterruptionThreshold' WHERE Name = 'InterruptionThreshold'
UPDATE Setting SET Name = 'DataAnalysis.LengthUnits' WHERE Name = 'LengthUnits'
UPDATE Setting SET Name = 'DataAnalysis.MaxCurrent' WHERE Name = 'MaxCurrent'
UPDATE Setting SET Name = 'DataAnalysis.MaxEventDuration' WHERE Name = 'MaxEventDuration'
UPDATE Setting SET Name = 'DataAnalysis.MaxTimeOffset' WHERE Name = 'MaxTimeOffset'
UPDATE Setting SET Name = 'DataAnalysis.MaxVoltage' WHERE Name = 'MaxVoltage'
UPDATE Setting SET Name = 'DataAnalysis.MinTimeOffset' WHERE Name = 'MinTimeOffset'
UPDATE Setting SET Name = 'DataAnalysis.SagThreshold' WHERE Name = 'SagThreshold'
UPDATE Setting SET Name = 'DataAnalysis.SwellThreshold' WHERE Name = 'SwellThreshold'
UPDATE Setting SET Name = 'DataAnalysis.SystemFrequency' WHERE Name = 'SystemFrequency'
UPDATE Setting SET Name = 'DataAnalysis.TimeTolerance' WHERE Name = 'TimeTolerance'

UPDATE Setting SET Name = 'FileEnumerator.FolderExclusion' WHERE Name = 'FolderExclusion'
UPDATE Setting SET Name = 'FileEnumerator.OrderedEnumeration' WHERE Name = 'FileWatcherOrderedEnumeration'
UPDATE Setting SET Name = 'FileEnumerator.Strategy' WHERE Name = 'FileWatcherEnumerationStrategy'

UPDATE Setting SET Name = 'FileProcessor.FilePattern' WHERE Name = 'FilePattern'
UPDATE Setting SET Name = 'FileProcessor.MaxFileCreationTimeOffset' WHERE Name = 'MaxFileCreationTimeOffset'

UPDATE Setting SET Name = 'FileWatcher.BufferSize' WHERE Name = 'BufferSize'
UPDATE Setting SET Name = 'FileWatcher.InternalThreadCount' WHERE Name = 'FileWatcherInternalThreadCount'
UPDATE Setting SET Name = 'FileWatcher.WatchDirectories' WHERE Name = 'WatchDirectories'

UPDATE Setting SET Name = 'System.DbTimeout' WHERE Name = 'DbTimeout'
UPDATE Setting SET Name = 'System.DefaultMeterTimeZone' WHERE Name = 'DefaultMeterTimeZone'
UPDATE Setting SET Name = 'System.XDATimeZone' WHERE Name = 'XDATimeZone'

UPDATE Setting SET Name = 'TaskProcessor.ProcessingThreadCount' WHERE Name = 'ProcessingThreadCount'